package com.lin.cms.domain;

import java.io.Serializable;

public class UserSite implements Serializable {

	private static final long serialVersionUID = 1L;

	private int usersiteId;

	private int userId;

	private int siteId;

	private int checkStep;

	private String isAllChannel;
	
	private Site site;

	public UserSite() {
	}

	public int getUsersiteId() {
		return usersiteId;
	}

	public void setUsersiteId(int usersiteId) {
		this.usersiteId = usersiteId;
	}

	public int getUserId() {
		return userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}
	
	public Site getSite() {
		return site;
	}

	public void setSite(Site site) {
		this.site = site;
	}

	public int getSiteId() {
		return siteId;
	}

	public void setSiteId(int siteId) {
		this.siteId = siteId;
	}

	public int getCheckStep() {
		return checkStep;
	}

	public void setCheckStep(int checkStep) {
		this.checkStep = checkStep;
	}

	public String getIsAllChannel() {
		return isAllChannel;
	}

	public void setIsAllChannel(String isAllChannel) {
		this.isAllChannel = isAllChannel;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + usersiteId;

		return result;
	}
	
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		final UserSite other = (UserSite) obj;
		if (usersiteId != other.usersiteId)
			return false;

		return true;
	}
	
	@Override
	public String toString() {
		return getClass().getName() + "@" + Integer.toHexString(hashCode()) + 
			"(" + 
			"usersiteId=" + "'" + usersiteId + "'" + 
			")";
	}
	
}
